package com.kaifamiao.dao;


import com.kaifamiao.annotation.Select;
import com.kaifamiao.model.UserInfoModel;

import java.util.List;

public interface IUserInfoDao2 {

    /**
     * 查询所有用户
     * @return
     */
    @Select("select * from userinfo")
    List<UserInfoModel> findAll();

    @Select("select * from userinfo where id = ?")
    List<UserInfoModel> selectOneById(int id);

}
